package so.sao.code.service.web.portal;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;

@Api(tags = "domain", description = "域名管理")
@RestController
@RequestMapping("portal/qrcodeDomain")
public class QrcodeDomainController {

	/*
	 * @Autowired private QrcodeDomainService qrcodeDomainService;
	 * 
	 *//**
		 * 域名查询接口
		 *
		 * @return
		 *//*
			 * @ApiOperation(value = "查询接口", notes = "查询所有二维码域名信息")
			 * 
			 * @GetMapping(produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
			 * 
			 * @RequiresAuthentication public Iterable<QrcodeDomainVO>
			 * qrcodeDomainsPageExample() { return qrcodeDomainService.findQrcodeDomains();
			 * }
			 * 
			 * @ApiOperation(value = "创建接口", notes = "创建域名基础信息接口")
			 * 
			 * @ApiImplicitParam(name = "domainUrl", value = "域名url", required = true,
			 * dataType = "String", paramType = "body")
			 * 
			 * @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)
			 * 
			 * @ButtonResource(cls = "", url = "qrcodedomaincreate")
			 * 
			 * @RequiresPermissions("code.qrcodedomaincreate") public QrcodeDomain
			 * create(@ApiIgnore @CurrentUser UserDTO user, @RequestBody(required = true)
			 * String domainUrl) { QrcodeDomain qrcodeDomain = new QrcodeDomain();
			 * qrcodeDomain.setDomainUrl(domainUrl);
			 * qrcodeDomain.setCreateUserId(user.getId());
			 * qrcodeDomain.setStatus(CommonStatus.EFFECTIVE.getValue());
			 * qrcodeDomain.setCreateDate(new Date()); return
			 * qrcodeDomainService.save(qrcodeDomain); }
			 * 
			 * @ButtonResource(cls = "", url = "qrcodedomainupdate")
			 * 
			 * @RequiresPermissions("code.qrcodedomainupdate")
			 * 
			 * @ApiOperation(value = "更新接口", notes = "更新域名基础信息接口")
			 * 
			 * @ApiImplicitParam(name = "qrcodeDomain", value = "域名基础信息", required = true,
			 * dataType = "QrcodeDomain", paramType = "body")
			 * 
			 * @PutMapping(produces = MediaType.APPLICATION_JSON_VALUE) public QrcodeDomain
			 * update(@ApiIgnore @CurrentUser UserDTO user, @RequestBody QrcodeDomain
			 * qrcodeDomain) { qrcodeDomain.setUpdateUserId(user.getId()); return
			 * qrcodeDomainService.save(qrcodeDomain); }
			 * 
			 * @ApiOperation(value = "删除接口", notes = "删除域名基础信息接口")
			 * 
			 * @ApiImplicitParam(name = "id", value = "域名信息ID", required = true, dataType =
			 * "Long", paramType = "body")
			 * 
			 * @DeleteMapping
			 * 
			 * @ButtonResource(cls = "", url = "qrcodedomaindelete")
			 * 
			 * @RequiresPermissions("code.qrcodedomaindelete") public QrcodeDomain
			 * delete(@ApiIgnore @CurrentUser UserDTO user, @RequestBody(required = true)
			 * Long id) { QrcodeDomain qrcodeDomain = new QrcodeDomain();
			 * qrcodeDomain.setId(id);
			 * qrcodeDomain.setStatus(CommonStatus.DELETED.getValue());
			 * qrcodeDomain.setUpdateUserId(user.getId());
			 * qrcodeDomain.setUpdateDate(Date.from(LocalDate.now().atStartOfDay(ZoneId.of(
			 * "UTC+8")).toInstant())); return qrcodeDomainService.save(qrcodeDomain); }
			 */

}
